/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Models;

import java.util.Collection;

/**
 *
 * @author sio
 */
public class Spe implements Comparable<Spe> {

    private String nom;
    private Collection<Med> lesMeds;

    public Spe(String nom, Collection<Med> lesMeds) {
        this.nom = nom;
        this.lesMeds = lesMeds;
    }

    public String getNom() {
        return this.nom;
    }

    public Collection<Med> lesMeds() {
        return this.lesMeds;
    }

    @Override
    public int compareTo(Spe o) {
        return nom.compareTo(o.nom);
    }
}
